﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Yule8xCommon.Typelib
{
    /// <summary>
    /// 拉取用户信息(需scope为 snsapi_userinfo)
    /// </summary>
    /// <remarks>成功：{ "subscribe": 1, "openid": "o6_bmjrPTlm6_2sgVt7hMZOPfL2M", "nickname": "Band", "sex": 1, "language": "zh_CN", "city": "广州", "province": "广东", "country": "中国", "headimgurl": "http://wx.qlogo.cn/mmopen/g3MonUZtNHkdmzicIlibx6iaFqAc56vxLSUfpb6n5WKSYVY0ChQKkiaJSgQ1dZuTOgvLLrhJbERQQ4eMsv84eavHiaiceqxibJxCfHe/0", "subscribe_time": 1382694957, "unionid": " o6_bmasdasdsad6_2sgVt7hMZOPfL" "remark": "", "groupid": 0, "tagid_list": [128, 2]}</remarks>
    /// <remarks>错误：{"errcode":40013,"errmsg":"invalid appid"}</remarks>
    public class WxUserInfoResult
    {
        public int subscribe { get; set; }
        public string openid { get; set; }
        public string nickname { get; set; }
        public int sex { get; set; }
        public string language { get; set; }
        public string city { get; set; }
        public string province { get; set; }
        public string country { get; set; }
        public string headimgurl { get; set; }
        public int subscribe_time { get; set; }
        public string unionid { get; set; }
        public string remark { get; set; }
        public int groupid { get; set; }
        public string tagid_list { get; set; }
        // 其他资料
        /// <summary>
        /// 用户表编号
        /// </summary>
        public int user_id { get; set; }
        public int game_id_bozhong { get; set; }
        public int game_id_wanghu { get; set; }
        public int parent1_uid { get; set; }
        public int parent2_uid;
        public string realname;
    }
}